package com.doubledragon.boot;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Scope;

/**
 * Created by dragon
 */
@EnableAspectJAutoProxy
@Configuration
@ComponentScan(basePackages = {"com.doubledragon.boot"})
public class AnnotationOfConfiguration {
    public AnnotationOfConfiguration() {
        System.out.println("AnnotationOfConfiguration容器初始化");
    }

    @Bean
    @Scope("prototype")
    public TestBean testBean(){
        return new TestBean();
    }
}
